from datetime import datetime

from django.db.models import Count, F
from django.db.models.functions import TruncMonth, ExtractMonth, ExtractYear
from django.test import TestCase

#
# from report.serializers import ExportBatchSerializer
#
# print(ExportBatchSerializer())
from archive.models import Report

# report = Report.objects.filter(create_time__year=datetime.now().year).annotate(
#     month=ExtractMonth('create_time')).values('month').order_by('month').annotate(count=Count('id')).values('month',
#                                                                                                             'count')
# print(report)
from archive.serializers import ReportSerializer

print(ReportSerializer())
